/*T869 06.key*/
#include "driver_key.h"
#include "driver_led.h"
#include "main.h"

uint8_t g_KeySta = 0;
//static uint32_t Key_Time;

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
	if(HAL_GPIO_ReadPin(GPIOA,GPIO_Pin) == RESET){
		//Key_Time = HAL_GetTick();
		g_KeySta = 1;
	}
	else{
		//if(HAL_GetTick()-Key_Time <= 1000)
		g_KeySta = 0;
	}
}

